package com.j180.demo.service.user.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.j180.demo.bean.UserBean;
import com.j180.demo.dao.user.IUserFDao;
import com.j180.demo.service.user.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl extends ServiceImpl<IUserFDao, UserBean> implements IUserService {
    @Resource
    private IUserFDao iUserFDao;

    @Override
    public UserBean login(String userName, String pwd) {

        UserBean  userBean= iUserFDao.getUserByUserNameAndPwd(userName,pwd);

        return userBean;
    }
}
